package com.bunker.client;

import com.google.gwt.core.client.GWT;

public class Collision {
	
	public int width,
				height,
				x,
				y;
	
	// Constructor
	public Collision(int width, int height, int x, int y) {
		this.width = width;
		this.height = height;
		this.x = x;
		this.y = y;
	}
	
	/*
	public Collision() {
		width = 0;
		height = 0;
		x = 0;
		y = 0;
	}
	*/
	/*
	public boolean colideOn(Collision thatEntity) {
		
		boolean xOverlap = valueInRange(x, thatEntity.x, thatEntity.x + thatEntity.width) ||
                    	   valueInRange(thatEntity.x, x, x + width);
		
		boolean yOverlap = valueInRange(y, thatEntity.y, thatEntity.y + thatEntity.height) ||
                    	   			valueInRange(thatEntity.y, y, y + thatEntity.height);
		
		return xOverlap && yOverlap;

	}
	
	private boolean valueInRange(int value, int min, int max) {
		return (value >= min) && (value <= max);
	}
	*/
	
}
